.tag-color-theme (@a, @b) {
    background: @a;
    color: @b;
    border-color: @a;
    &.lk-tag-ghost {
        background: transparent;
        color: @a;
    }
}

.lk-tag {
    display: inline-block;
    font-size: @tag-font-size-base;
    padding: @tag-padding-base;
    border: 1px solid @border-color-base;
    border-radius: @tag-border-radius-base;
    margin: 0 15rpx 0 0;
    &.lk-tag-primary {
        .tag-color-theme(@primary-color, #fff);
    }
    &.lk-tag-info {
        .tag-color-theme(@info-color, #fff);
    }
    &.lk-tag-success {
        .tag-color-theme(@success-color, #fff);
    }
    &.lk-tag-warning {
        .tag-color-theme(@warning-color, #fff);
    }
    &.lk-tag-error {
        .tag-color-theme(@error-color, #fff);
    }
}